-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix backup authentication method variable resolution #381
Conversation
@@ -71,7 +71,7 @@ public static function get_instance() { | |||
* Returns the name of the provider. | |||
*/ | |||
public function get_label() { | |||
return _x( 'Time Based One-Time Password (Google Authenticator)', 'Provider Label', 'two-factor' ); | |||
return _x( 'Time Based One-Time Password (TOTP)', 'Provider Label', 'two-factor' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are more ways to do TOTP these days so make it generic.
@@ -142,7 +142,7 @@ public function user_two_factor_options( $user ) { | |||
</p> | |||
<?php else : ?> | |||
<p class="success"> | |||
<?php esc_html_e( 'Secret key configured and registered.', 'two-factor' ); ?> | |||
<?php esc_html_e( 'Secret key is configured and registered. It is not possible to view it again for security reasons.', 'two-factor' ); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been a frequent question in the support forums so we explain why the secret key is not shown again.
@@ -454,6 +454,9 @@ public function is_available_for_user( $user ) { | |||
public function authentication_page( $user ) { | |||
require_once ABSPATH . '/wp-admin/includes/template.php'; | |||
?> | |||
<p> | |||
<?php esc_html_e( 'Please enter the code generated by your authenticator app.', 'two-factor' ); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain where to get the code from.
Fixes a regression introduced in #340.
Props @joshbetz!